import {get,post} from "../../utils/request"
// 添加
interface IAdd{
    reviewer_name: string,
    openid: string,
    mobile: string,
    department:string,
    job: string,
    is_use:string,
}
// 添加数据
const PostAdd = <IAdd>(params:IAdd)=>{
    return post("api/visit/reviewer/add",params)
}
// 部门级级联动
const GetList = ()=>{
    return get("api/visit/department/list")
}
// 回显根据id查询整条数据
const  GetUpda = (params:any)=>{
    return get("/api/visit/reviewer/show",params)
}
// 修改数据
const PostUpda=(params:any)=>{
    return post("api/visit/reviewer/edit",params)
}
export {
    PostAdd,
    GetList,
    GetUpda,
    PostUpda
}